'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/github/:user/followers', controller.home.getGithubFollowers);

  // 文章 news 相关路由
  require('./router/news')(app);
  require('./router/upload')(app);
};
